﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Login.Master" AutoEventWireup="true"
    Inherits="System.Web.Mvc.ViewPage" Title="Login" %>

<%@ Import Namespace="ETestIT.Web.Controllers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

    <div id="left">
        <% if (ViewData.ContainsKey("LoginFaild"))
           { %>
        <div style="color: Red">
            <%=ViewData["LoginFaild"]%></div>
        <% } %>
        <% using (Html.BeginForm<LoginController>(x => x.Login(), FormMethod.Post, new { @class = "niceform" })) { %>
        <%= Html.AntiForgeryToken()%>
        <% if (Request.Browser.Browser == "Firefox")
           { %>
        <div class="login_area">
            <div class="login_head">
                Already a Member ?</div>
            <div class="login_textarea">
                <div class="login_name">
                    Your Name
                </div>
                <div class="login_box">
                    <label>
                        <input type="text" class="logintextbox" name="userName" />
                    </label>
                </div>
            </div>
            <div class="login_textarea">
                <div class="login_name">
                    Password
                </div>
                <div class="login_box">
                    <label>
                        <input type="password" class="logintextbox" name="password" />
                    </label>
                </div>
            </div>
            <div class="login_textarea">
                <input type="submit" value="LogIn" />
            </div>
        </div>
        <% } else { %>
        <div id="restricted_browser_message">
            <h1>
                Current version works just in Mozilla Firefox.</h1>
            <h3>
                Cross Browser compatibility is not done yet
            </h3>
        </div>
        <% } %>
        <% } %>
        <br />
        <br />
        <br />
        <br />
    </div>
</asp:Content>
